<template>
  <div id="school">
    <div class="header">头部</div>
    <!-- 头部广告图 -->
    <div class="top-banner">
      <div class="img"></div>
    </div>
    <!-- 搜索框 -->
    <div class="school-banner">
      <div class="column-search-panel search-panel-new">
        <div class="inner home-inner">
          <div class="search-box">
            <div class="school-typebox">
              <a href="">
                <div class="typebox-full cur">找全职</div>
              </a>
              <a href="">
                <div class="typebox-intern">找实习</div>
              </a>
            </div>
            <div class="search-form">
              <form method="get">
                <div class="search-form-con">
                  <div class="city-sel">
                    <i class="line"></i>
                    <span class="label-text">
                      <b>深圳</b>
                      <i class="icon-arrow-down"></i>
                    </span>
                  </div>
                  <p class="ipt-wrap">
                    <input
                      type="text"
                      name="query"
                      class="ipt-search"
                      maxlength="50"
                      autocomplete="off"
                      placeholder="搜索职位、公司"
                    />
                  </p>
                </div>
                <button class="btn btn-search">搜索</button>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 主体部分 -->
    <div id="main" class="inner home-inner">
      <div class="home-box" style="margin-top: 0px">
        <div class="main-screen">
          <div class="left">
            <!-- 左侧菜单 -->
            <div class="school-job-munu">
              <ul class="job-menu-tab clearfix">
                <li class="menu-tab-major" data-type="major">
                  <span>按专业筛选</span>
                </li>
                <li class="menu-tab-cluster active" data-type="cluster">
                  <span>按职业筛选</span>
                </li>
              </ul>

              <div class="job-menu-list">
                <!-- 按专业筛选 -->
                <ul class="job-menu-major">
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                  <li>
                    <a href="">农学</a>
                  </li>
                </ul>
                <!-- 按职类筛选 -->
                <!-- <ul class="expand-menu-cluster active">
                  <li>
                    <a href="">互联网技术/运营/产品</a>
                  </li>
                  <li>
                    <a href="">设计/销售/房地产</a>
                  </li>
                  <li>
                    <a href="">人力/法律</a>
                  </li>
                </ul> -->
              </div>
            </div>
          </div>
          <div class="slider-box">
            <div class="promotion-main">
              <table
                style="border-collapse: collapse; table-layout: fixed"
                border="0"
              >
                <tbody>
                  <tr>
                    <td>
                      <a href="">
                        <img
                          src="https://img.bosszhipin.com/beijin/upload/image/20220823/8781c36110bb27f4fafa0408d67d2d92.jpg"
                          alt=""
                          width="260"
                          height="112"
                        />
                      </a>
                    </td>
                    <td>
                      <a href="">
                        <img
                          src="https://img.bosszhipin.com/beijin/upload/image/20220823/cbdb827619465287ae6bf9d9593d38d7.png"
                          alt=""
                          width="260"
                          height="112"
                        />
                      </a>
                    </td>
                    <td>
                      <a href="">
                        <img
                          src="https://img.bosszhipin.com/beijin/upload/image/20220823/3f12149553704739d2b4dc7714c88b13.jpg"
                          alt=""
                          width="260"
                          height="112"
                        />
                      </a>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2">
                      <a href="">
                        <img
                          src="https://img.bosszhipin.com/beijin/upload/image/20220831/1ef78dbd7ead99b321fce76f1958e27a.jpg"
                          alt=""
                          width="522"
                          height="112"
                        />
                      </a>
                    </td>
                    <td>
                      <a href="">
                        <img
                          src="https://img.bosszhipin.com/beijin/upload/image/20220823/64f09f7636c872f32f8466b067000e10.png"
                          alt=""
                          width="260"
                          height="112"
                        />
                      </a>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="2">
                      <a href="">
                        <img
                          src="https://img.bosszhipin.com/beijin/upload/image/20220902/8b7e801d0e37710f2de34c6dde6a3578.jpg"
                          alt=""
                          width="522"
                          height="112"
                        />
                      </a>
                    </td>
                    <td>
                      <a href="">
                        <img
                          src="https://img.bosszhipin.com/beijin/upload/image/20220823/bc168172aac22c8dac65d3e207d8d5a0.png"
                          alt=""
                          width="260"
                          height="112"
                        />
                      </a>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>

        <!-- 校招直播 -->
        <!-- 校园直播 -->
        <div class="school-live">
          <h3>校招直播</h3>
          <div class="swiper-school-live">
            <!-- 中间部分 -->
            <div class="swiper-container">
              <ul class="swiper-wrapper">
                <li
                  class="swiper-slide swiper-slide-visible swiper-slide-active"
                >
                  <div class="live-list clearfix">
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                    <a class="live-item">
                      <span class="live-time">直播时间 09.06 19:00</span>
                      <span class="live-item-tag notice">预告</span>
                      <img
                        class="live-image"
                        src="https://boss-bj.oss-cn-beijing.aliyuncs.com/beijin/upload/school/live/20220830/b93206e5b50f908361f5b8249da710bf70cdc250fa979ef84c34fbbf90789d24b6299edc953b28e5"
                        alt=""
                      />
                      <div class="info-content">
                        <div class="info-main">
                          <span>CHARLES & KEITH 2023零售管培生校招直播</span>
                          <p>RMT-人力资源方向等39个岗位</p>
                        </div>
                      </div>
                    </a>
                  </div>
                </li>
              </ul>
            </div>
            <!-- 左右滑动 -->
            <div class="swiper-nav prev"></div>
            <div class="swiper-nav next"></div>
          </div>
        </div>

        <!-- 热门公司 -->
        <HotCompany></HotCompany>

        <!-- 热门校招 -->
        <!-- <SchoolHotrecruitment /> -->

        <!-- 求职指导 -->
        <JobGuide></JobGuide>

        <!-- 求职攻略 -->
        <JobSearch></JobSearch>
      </div>
    </div>
  </div>
</template>


<script>
// import SchoolHotrecruitment from "./SchoolHotrecruitment";
import JobGuide from "./JobGuide";
import JobSearch from "./JobSearch";
import HotCompany from "./HotCompany";
export default {
  name: "MySchool",
  components: {
    // SchoolHotrecruitment,
    JobGuide,
    JobSearch,
    HotCompany,
  },
};
</script>

<style lang="less" scoped>
#school {
  background-color: #e5f4f7;
}
.header {
  width: 100%;
  height: 49px;
  background-color: #202329;
}

.top-banner {
  height: 180px;
  background: linear-gradient(337deg, #00bebd 0, #00a6a7 100%);
  .img {
    background: url(https://img.bosszhipin.com/static/file/2022/n77e402fln1657505842097.png)
      center/auto 180px no-repeat;
    height: 180px;
    background-size: auto 100%;
    background-position: center;
  }
}

// 搜索框
.school-banner {
  margin: 52px auto 40px;

  .column-search-panel {
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 888;

    .home-inner {
      width: 1184px;
      max-width: 1184;
      margin: 0 auto;

      .search-box {
        width: 900px;
        padding-top: 24px;
        position: relative;
        margin: 0 auto;
        font-size: 13px;

        .school-typebox {
          width: 204px;
          border-radius: 12px;
          background: #fff;
          top: -12px;
          bottom: 0;
          left: 0;
          overflow: hidden;
          position: absolute;
          font-size: 0;

          a {
            width: 50%;
            float: left;
            text-decoration: none;
            color: #414a60;

            .typebox-full {
              color: #fff;
              background: #00bebd;
              font-weight: 500;
              border-radius: 12px 12px 0 0;
              font-size: 14px;
              line-height: 36px;
              height: 46px;
              text-align: center;
              display: block;
              width: 100%;
              margin: 0;
              cursor: pointer;

              ::before {
                content: "找全职";
                display: block;
              }
            }

            .typebox-intern {
              font-size: 14px;
              font-weight: 400;
              color: #222;
              line-height: 36px;
              height: 46px;
              text-align: center;
              background: #fff;
              display: block;
              background-position: 0 0;
              width: 100%;
              margin: 0;
              cursor: pointer;

              ::before {
                contain: "实习";
                display: block;
              }
            }
          }
        }

        .search-form {
          box-shadow: 0 10px 30px rgba(153, 153, 153, 0.2);
          border-radius: 10px;
          height: 54px;
          position: relative;
          zoom: 1;
          z-index: 9999;

          form {
            display: block;

            .search-form-con {
              border-radius: 10px;
              box-shadow: none;
              position: absolute;
              top: 0;
              left: 0;
              z-index: 1;
              width: 780px;
              background: #fff;
              border: 2px solid #00bebd;
              float: left;

              .city-sel {
                border-radius: 12px 0 0 12px;
                border: none !important;
                padding: 11px 15px;
                width: 78px;
                display: block;
                height: 28px;
                line-height: 30px;
                float: left;
                background-color: #fff;
                position: relative;
                cursor: pointer;

                .line {
                  display: none;
                  height: 32px;
                  width: 1px;
                  background-color: #f2f2f5;
                  position: absolute;
                  top: 8px;
                  right: 0;
                }

                .label-text {
                  line-height: 28px;
                  width: 70px;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                  overflow: hidden;
                  display: inline-block;

                  b {
                    color: #222;
                    font-size: 16px;
                    font-weight: 400;
                  }

                  .icon-arrow-down {
                    width: 4px;
                    height: 7px;
                    top: 20px;
                    right: 14px;
                    background: url(https://img.bosszhipin.com/static/file/2022/01vcskhm8y1652252017628.png) -6px -16px/10px
                      auto no-repeat;
                    transform: rotate(90deg);
                    position: absolute;
                  }
                }
              }

              .ipt-wrap {
                border-radius: 10px;
                height: 50px;
                border: none;
                background: #fff;
                overflow: hidden;
                position: relative;

                .ipt-search {
                  width: 703px;
                  padding: 11px 18px;
                  font-size: 16px;
                  height: 28px;
                  line-height: 30px;
                  border: 0;
                  color: #414a60;
                  outline: none;
                }
              }
            }

            .btn-search {
              width: 128px;
              background: #00bebd;
              border-radius: 0 10px 10px 0;
              font-size: 20px;
              height: 54px;
              line-height: 54px;
              float: right;
              text-align: center;
              color: #fff;
              border: 0;
              cursor: pointer;
              padding: 0;
              min-width: 0;
              box-sizing: content-box;
              letter-spacing: 1px;
            }
          }
        }
      }
    }
  }
}

// 主体部分
#main {
  position: relative;
  width: 1184px;
  max-width: 1184px;
  margin: 0 auto;

  .main-screen {
    display: flex;
    height: 340px;

    .left {
      width: 384px;
      position: relative;
      z-index: 2;
      margin-right: 16px;

      .school-job-munu {
        border-radius: 12px;
        box-shadow: none;
        width: 384px;
        background: #fff;
        color: #61687c;
        position: relative;
        z-index: 1002;

        .job-menu-tab {
          height: 49px;
          background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
          border-radius: 12px 12px 0 0;
          border-bottom: none;
          line-height: 49px;
          color: #222;
          font-size: 16px;

          li {
            position: relative;
            width: 50%;
            margin: 0;
            text-align: center;
            transition: none;
            float: left;
            cursor: pointer;

            span {
              display: inline-block;

              &::before {
                display: inline-block;
                content: "";
                width: 16px;
                height: 16px;
                background: url(https://img.bosszhipin.com/static/file/2022/hzdzqozseo1660283831564.png?v=1)
                  0 0/16px auto no-repeat;
                vertical-align: middle;
                position: relative;
                top: -2px;
                margin-right: 6px;
              }
            }
          }

          .menu-tab-major::after {
            content: "";
            position: absolute;
            top: 19px;
            right: 0;
            width: 2px;
            height: 10px;
            background: #e0e0e0;
            border-radius: 1px;
            z-index: 1;
          }

          .menu-tab-cluster {
            span::before {
              background-position: 0 -32px;
            }
          }
        }

        .job-menu-list {
          height: 287px;
          overflow: visible;

          .job-menu-cluster > li {
            width: 332px;
            margin: 0;
            margin-top: 6px;
          }
        }

        .job-menu-list li {
          position: relative;
          padding: 0 20px;
          border-radius: 8px;
          width: 80px;
          margin-right: 6px;
          margin-top: 6px;
          float: left;
          height: 36px;
          cursor: pointer;

          a {
            min-width: 88px;
            color: #333;
            display: inline-block;
            max-width: 81px;
            height: 36px;
            font-size: 14px;
            line-height: 36px;
            margin-left: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            vertical-align: middle;
            text-decoration: none;
          }
        }

        .job-menu-list ul.active {
          display: block;
        }

        .job-menu-list ul::after {
          content: "";
          clear: both;
          width: 0;
          height: 0;
          display: table;
        }
      }
    }

    .slider-box {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      flex: 1;

      .promotion-main {
        margin: -2px -2px 2px;
        font-size: 0;
        line-height: 0;
        height: 340px;
        position: relative;

        tbody {
          display: table-row-group;
          vertical-align: middle;
          border-color: inherit;
          text-indent: initial;
          border-spacing: 2px;

          tr {
            min-height: 114px;
            display: table-row;
            vertical-align: inherit;
            border-color: inherit;

            td {
              padding: 0;
              border: 2px solid transparent;
              width: auto;
              vertical-align: top;

              a {
                width: 260px;
                text-decoration: none;
                color: #414a60;

                img {
                  display: block !important;
                  height: auto;
                  border: none;
                }
              }
            }
          }
        }
      }
    }
  }
}

// 校园直招
.school-live {
  margin-top: 64px;
  padding-bottom: 0;
  margin-bottom: -12px;

  h3 {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    line-height: 40px;
    margin-bottom: 16px;
  }

  .swiper-school-live {
    position: relative;

    .swiper-container {
      position: relative;
      padding-bottom: 20px;
      margin-left: -8px;
      margin-right: -8px;
      margin: 0 auto;
      overflow: hidden;

      .swiper-wrapper {
        position: relative;
        box-sizing: content-box;
        width: 4800px;
        height: 504px;

        .swiper-slide {
          width: 1184px !important;
          height: 504px;
          float: left;
          box-sizing: content-box;

          .live-list {
            margin-left: -8px;
            margin-right: -8px;
            zoom: 1;

            .live-item {
              display: block;
              position: relative;
              width: 284px;
              overflow: hidden;
              margin: 8px;
              float: left;
              border-radius: 12px;

              .live-time {
                position: absolute;
                display: block;
                right: 4px;
                bottom: 82px;
                border-radius: 4px;
                background: rgba(0, 0, 0, 0.6);
                font-size: 12px;
                font-weight: 400;
                color: rgba(255, 255, 255, 1);
                line-height: 17px;
                z-index: 1;
                padding: 2px 4px;
                border-radius: 8px;
              }

              .live-item-tag {
                background: rgba(250, 119, 71, 0.1);
                color: #f46935;
                padding-left: 8px;
                padding-right: 8px;
                max-width: 248px;
                position: absolute;
                bottom: 12px;
                right: 20px;
                z-index: 2;
                border-radius: 4px;
                font-size: 13px;
                font-weight: 400;
                line-height: 18px;
                padding: 2px 8px;
                text-overflow: ellipsis;
                white-space: normal;
                overflow: hidden;
              }

              .live-item-tag::before {
                content: "";
                display: inline-block;
                width: 12px;
                height: 12px;
                margin-right: 6px;
                vertical-align: middle;
                position: relative;
                top: -1px;
                background: url(https://img.bosszhipin.com/static/file/2022/ewb1mwjih91658115663148.png)
                  0 0/12px auto no-repeat;
              }

              .live-image {
                height: 158px;
                width: 284px;
                display: block;
                margin: 0 auto;
                border: none;
              }

              .info-content {
                height: 62px;
                padding-top: 16px;
                background: #fff;

                .info-main {
                  padding: 0 20px;

                  span {
                    display: block;
                    font-size: 16px;
                    font-weight: 500;
                    color: #222;
                    line-height: 22px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                  }

                  p {
                    max-width: 168px;
                    font-size: 13px;
                    font-weight: 400;
                    color: #666;
                    line-height: 18px;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    margin-top: 8px;
                  }
                }
              }
            }
          }
        }
      }
    }

    // 左箭头
    .swiper-nav {
      position: absolute;
      top: 50%;
      margin-top: -28px;
      width: 30px;
      height: 56px;
      background: #fff;
      border-radius: 15px;
      cursor: pointer;
    }
    .prev {
      left: -38px;

      &::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 1;
        margin-left: -8px;
        margin-top: -4px;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-right: 5px solid #000;
        border-left: 5px solid transparent;
        border-radius: 2px;
      }
    }

    .next {
      right: -38px;

      &::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 1;
        margin-left: -1px;
        margin-top: -4px;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-right: 5px solid transparent;
        border-left: 5px solid #000;
        border-radius: 2px;
      }
    }
  }
}
</style>